import axios from '@/common/request.js';

//获取用户的推荐人和邀请人列表
export const getReferrer = payload => axios({
	url: `/user/getReferrer`,
	method: 'post',
	payload
})

//获取用户的佣金明细
export const rewardList = payload => axios({
	url: `/reward/list`,
	method: 'post',
	payload
})

//获取用户的佣金汇总
export const rewardSummary = payload => axios({
	url: `/reward/summary`,
	method: 'post',
	payload
})

//删除提现记录
export const cashDel = payload => axios({
	url: `/cash/delete`,
	method: 'post',
	payload
})

//提现记录
export const cashList = payload => axios({
	url: `/cash/list`,
	method: 'post',
	payload
})

//新增提现/修改
export const cashSave = payload => axios({
	url: `/cash/save`,
	method: 'post',
	payload
})

//生成小程序码
export const createAppletQRCode = payload => axios({
	url:`/auth/create_applet_qrcode`,
	method:'get',
	payload
})

//推广排名
export const rank = payload => axios({
	url:`/reward/rank`,
	method:'post',
	payload
})
